package com.qingke;

import java.io.InputStream;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

import com.qingke.pojo.Blog;

public class Player {
	private SqlSessionFactory factory;
	private static Player player= new Player();
	
	private Player(){
		String config="";
		InputStream a = this.getClass().getClassLoader().getResourceAsStream(config);
		factory = new SqlSessionFactoryBuilder().build(a);
	}
	public static Player getI(){
		return player;
	}
	public SqlSession gett(){
		return factory.openSession();
	}

}
